package com.zbs.test.utils;


import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.TimerTask;

/**
 * @Description :
 *      异步工厂（产生任务用），注意分布式环境下，同时跑两个一样的任务
 */
@Slf4j
public class AsyncFactory {
 
    private static final Logger sys_user_logger = LoggerFactory.getLogger(AsyncFactory.class);

    /**
     * @return 任务task
     */
    public static TimerTask uploadVideo() {
        return new TimerTask() {
            @Override
            public void run() {
                try {
                } catch (Exception ignored) {
                }
            }
        };
    }

}